/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.adapter.driving.persistence.msg;

import com.lap.auth.adapter.driving.persistence.msg.po.MsgTemplatePo;
import com.lap.auth.domain.msg.MsgTemplate;
import java.util.List;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface MsgTemplateConverter {

  @Mapping(target = "event", ignore = true)
  MsgTemplate toDomain(MsgTemplatePo msgTemplatePo);

  List<MsgTemplate> toDomains(List<MsgTemplatePo> list);

  MsgTemplatePo toPo(MsgTemplate msgTemplate);

  List<MsgTemplatePo> toPoList(List<MsgTemplate> list);
}
